package com.farm.device.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Table(name="t_device_index")

public class DeviceIndex implements Serializable {
    @Id
    private Integer id;
    private Integer did;                  //设备ID;
    private Integer iid;            //数据指标ID;
    private String device_range;                //测量范围;
    private String accuracy;             //精度;
    private String resolving_power;      //分辨率

    public DeviceIndex(Integer did) {
        this.did = did;
    }

    public DeviceIndex() {
    }

    @Override
    public String toString() {
        return "DeviceIndex{" +
                "id=" + id +
                ", did=" + did +
                ", iid=" + iid +
                ", device_range='" + device_range + '\'' +
                ", accuracy='" + accuracy + '\'' +
                ", resolving_power='" + resolving_power + '\'' +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getDid() {
        return did;
    }

    public void setDid(Integer did) {
        this.did = did;
    }

    public Integer getIid() {
        return iid;
    }

    public void setIid(Integer iid) {
        this.iid = iid;
    }

    public String getDevice_range() {
        return device_range;
    }

    public void setDevice_range(String device_range) {
        this.device_range = device_range;
    }

    public String getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(String accuracy) {
        this.accuracy = accuracy;
    }

    public String getResolving_power() {
        return resolving_power;
    }

    public void setResolving_power(String resolving_power) {
        this.resolving_power = resolving_power;
    }

    public DeviceIndex(Integer id, Integer did, Integer iid, String device_range, String accuracy, String resolving_power) {
        this.id = id;
        this.did = did;
        this.iid = iid;
        this.device_range = device_range;
        this.accuracy = accuracy;
        this.resolving_power = resolving_power;
    }
}
